package xyz.xtt.user.service;

import com.tongtong.middleware.vo.params.AccountParams;
import com.tongtong.middleware.vo.response.AccountResponse;

import xyz.xtt.user.entity.TblUser;
import xyz.xtt.user.vo.user.TongTongUserInfo;

/**
 * @author huqibo
 * @date 2024/11/04
 */
public interface ThirdService {
	/**
	 * 創建鏈帳戶
	 * 
	 * @param req
	 * @return
	 */
	AccountResponse createAndQueryAccount(AccountParams req);

	/**
	 * 获取用户详情
	 * 
	 * @param appUserId
	 * @return
	 */
	TblUser httpUserInfo(String appUserId);

	/**
	 * 同步用户信息
	 * 
	 * @param userInfo
	 */
	void syncUser(TongTongUserInfo userInfo);

	/**
	 * 用户注册
	 * 
	 * @param phone
	 * @param name
	 * @return
	 */
	Long userReg(String phone, String name);
}
